﻿<%@ Control language="C#" Inherits="eMarketing.SearcheMarketing" CodeFile="SearcheMarketing.ascx.cs" AutoEventWireup="true"%>
<%@ Register Src="../../controls/tm_TreeViewAdv.ascx" TagName="tm_TreeViewAdv" TagPrefix="uc3" %>
<%@ Register Src="../../controls/tm_GroupList.ascx" TagName="tm_GroupList" TagPrefix="uc4" %>
<%@ Register Src="../../controls/tm_GroupList.ascx" TagName="tm_GroupList" TagPrefix="uc2" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<table border="0" width="100%">
    <tr>
        <td align="center">
                        &nbsp;<asp:Label ID="lblMessage" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td align="center">
                        <asp:Panel ID="pnlSearchInformation" runat="server" BorderWidth="0px"
                            Width="100%">
                            <table border="0" width="600">
                                <tr>
                                    <td style="width: 193px;">
                                        <asp:Label ID="Label1" runat="server" Text="Thời gian :"   CssClass="titletext3"></asp:Label></td>
                                    <td >
                                        <asp:TextBox ID="txtFromDate" runat="server" MaxLength="10" Width="80px"></asp:TextBox>
                                        <asp:HyperLink ID="hplFromDate" runat="server" ImageUrl="~/images/calendar.png"></asp:HyperLink>
                                        <asp:TextBox ID="txtToDate" runat="server" MaxLength="10" Width="80px"></asp:TextBox>
                                        <asp:HyperLink ID="hplToDate" runat="server" ImageUrl="~/images/calendar.png"></asp:HyperLink></td>
                                </tr>
                                <tr>
                                    <td style="width: 193px;">
                                        <asp:Label ID="Label2" runat="server" Text="Khu vực tìm :"   CssClass="titletext3"></asp:Label></td>
                                    <td >
                                        <asp:DropDownList ID="ddListSearchArea" runat="server" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="ddListSearchArea_SelectedIndexChanged">
                                        </asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td style="width: 193px;">
                                        <asp:Label ID="Label4" runat="server" Text="Số quan tâm :"   CssClass="titletext3"></asp:Label></td>
                                    <td >
                                        <asp:TextBox ID="txtInterestingNumber" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td style="width: 193px; height: 26px;">
                                        <asp:Label ID="Label5" runat="server" Text="Số lần liên hệ :"   CssClass="titletext3"></asp:Label></td>
                                    <td style="height: 26px" >
                                        <asp:TextBox ID="txtContactingNumber" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td style="width: 193px;">
                                        <asp:Label ID="Label6" runat="server" Text="Số lượt click chuột :"   CssClass="titletext3"></asp:Label>&nbsp;</td>
                                    <td >
                                        <asp:TextBox ID="txtClickNumber" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td style="width: 193px;">
                                        <asp:Label ID="Label7" runat="server" Text="Sắp xếp theo :"   CssClass="titletext3"></asp:Label></td>
                                    <td >
                                        <asp:DropDownList ID="ddlOrderBy" runat="server" Width="200px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 193px;">
                                    </td>
                                    <td style="height: 45px">
                                        <asp:Button ID="btnSearchInfo_Search" runat="server" Text="Tìm kiếm" Width="90px"   OnClick="btnSearchInfo_Search_Click" ValidationGroup="search" CssClass="btn" />
                                        <asp:Button ID="btnReset" runat="server" Text="Làm lại" Width="90px" CssClass="btn" />
                                        <asp:Button ID="btnGroup" runat="server" Text="Quản lý nhóm" Width="90px"   OnClick="btnGroup_Click" CssClass="btn" /></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top; width: 193px;">
                                        <asp:Label ID="Label3" runat="server" Text="Linh vực :"   CssClass="titletext3"></asp:Label></td>
                                    <td valign="top">
                                        <uc3:tm_TreeViewAdv ID="tvProductCatS" runat="server" myWidth="300" myHeight="200" /><uc3:tm_TreeViewAdv ID="tvActivityCat" runat="server" myWidth="300" myHeight="200" Visible="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 10px">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 10px">
                                        <asp:GridView ID="gvSearch" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True" CssClass="table" OnPageIndexChanging="gvSearch_PageIndexChanging" OnDataBound="gvSearch_DataBound">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="ck" runat="server" />
                                                    </ItemTemplate>
                                                    <ItemStyle Width="15px" />
                                                    <HeaderStyle Width="15px" />
                                                    <FooterStyle Width="15px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="userid" HeaderText="userid" Visible="False" />
                                                <asp:BoundField DataField="fullName" HeaderText="fullName" Visible="False">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="companyName1" HeaderText="companyName1" Visible="False">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="T&#234;n/Đơn vị">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label19" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name1").ToString() %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="quantam" HeaderText="Quan t&#226;m">
                                                    <ItemStyle HorizontalAlign="Center" Width="80px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="lienhe" HeaderText="Li&#234;n hệ">
                                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="click" HeaderText="Click">
                                                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                                                </asp:BoundField>
                                                <asp:TemplateField Visible="False">
                                                    <ItemTemplate>
                                                        <asp:Label
                                                            ID="lblID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userid").ToString() %>'
                                                            Visible="False"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="100px" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerStyle HorizontalAlign="Right" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center" rowspan="">
                                        <asp:Label ID="lblAddMemberMes" runat="server" Visible="False"></asp:Label>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 10px">
                                        <asp:Panel ID="pnlGroup" runat="server" Visible="False">
                                        <table border="0" width="600">
                                            <tr>
                                                <td style="width: 80px; padding-left: 10px; vertical-align: middle;" valign="top">
                                                    <asp:Label id="Label8" runat="server" Text="Nhóm :"   CssClass="titletext3"></asp:Label></td>
                                                <td style="vertical-align: top">
                                                    &nbsp;<uc4:tm_GroupList ID="tm_GroupList_Search" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 80px; height: 45px;"></td>
                                                <td style="height: 45px">
                                                    <asp:Button id="btnAddSelectedItem" Width="120px" runat="server" Text="Thêm đã chọn"   OnClick="btnAddSelectedItem_Click" CssClass="btn"></asp:Button>&nbsp;<asp:Button id="btnAddAllSelectedItem" Width="120px" runat="server" Text="Thêm tất cả"   OnClick="btnAddAllSelectedItem_Click" CssClass="btn"></asp:Button>
                                                                <asp:Button id="btnAddNewGroup" Width="120px" runat="server" Text="Thêm nhóm mới"   OnClick="btnAddNewGroup_Click" CssClass="btn"></asp:Button></td>
                                            </tr>
                                        </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
        </td>
    </tr>
</table>

